Optimal. Leaf size=127 \[ -\frac {d^2 \left (a+b x^2\right )^{1+p}}{2 a x^2}-\frac {2 d e \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (-\frac {1}{2},-p;\frac {1}{2};-\frac {b x^2}{a}\right )}{x}-\frac {\left (a e^2+b d^2 p\right ) \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )}{2 a^2 (1+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {1821, 778, 372,
371, 272, 67} \begin {gather*} -\frac {\left (a+b x^2\right )^{p+1} \left (a e^2+b d^2 p\right ) \, _2F_1\left (1,p+1;p+2;\frac {b x^2}{a}+1\right )}{2 a^2 (p+1)}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{2 a x^2}-\frac {2 d e \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \, _2F_1\left (-\frac {1}{2},-p;\frac {1}{2};-\frac {b x^2}{a}\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 272
Rule 371
Rule 372
Rule 778
Rule 1821
Rubi steps
\begin {align*} \int \frac {(d+e x)^2 \left (a+b x^2\right )^p}{x^3} \, dx &=-\frac {d^2 \left (a+b x^2\right )^{1+p}}{2 a x^2}-\frac {\int \frac {\left (-4 a d e-2 \left (a e^2+b d^2 p\right ) x\right ) \left (a+b x^2\right )^p}{x^2} \, dx}{2 a}\\ &=-\frac {d^2 \left (a+b x^2\right )^{1+p}}{2 a x^2}+(2 d e) \int \frac {\left (a+b x^2\right )^p}{x^2} \, dx+\frac {\left (a e^2+b d^2 p\right ) \int \frac {\left (a+b x^2\right )^p}{x} \, dx}{a}\\ &=-\frac {d^2 \left (a+b x^2\right )^{1+p}}{2 a x^2}+\frac {\left (a e^2+b d^2 p\right ) \text {Subst}\left (\int \frac {(a+b x)^p}{x} \, dx,x,x^2\right )}{2 a}+\left (2 d e \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \frac {\left (1+\frac {b x^2}{a}\right )^p}{x^2} \, dx\\ &=-\frac {d^2 \left (a+b x^2\right )^{1+p}}{2 a x^2}-\frac {2 d e \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (-\frac {1}{2},-p;\frac {1}{2};-\frac {b x^2}{a}\right )}{x}-\frac {\left (a e^2+b d^2 p\right ) \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )}{2 a^2 (1+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 119, normalized size = 0.94 \begin {gather*} \frac {1}{2} \left (a+b x^2\right )^p \left (-\frac {4 d e \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (-\frac {1}{2},-p;\frac {1}{2};-\frac {b x^2}{a}\right )}{x}-\frac {\left (a+b x^2\right ) \left (a e^2 \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )-b d^2 \, _2F_1\left (2,1+p;2+p;1+\frac {b x^2}{a}\right )\right )}{a^2 (1+p)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (e x +d \right )^{2} \left (b \,x^{2}+a \right )^{p}}{x^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 7.19, size = 119, normalized size = 0.94 \begin {gather*} - \frac {2 a^{p} d e {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, - p \\ \frac {1}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{x} - \frac {b^{p} d^{2} x^{2 p} \Gamma \left (1 - p\right ) {{}_{2}F_{1}\left (\begin {matrix} - p, 1 - p \\ 2 - p \end {matrix}\middle | {\frac {a e^{i \pi }}{b x^{2}}} \right )}}{2 x^{2} \Gamma \left (2 - p\right )} - \frac {b^{p} e^{2} x^{2 p} \Gamma \left (- p\right ) {{}_{2}F_{1}\left (\begin {matrix} - p, - p \\ 1 - p \end {matrix}\middle | {\frac {a e^{i \pi }}{b x^{2}}} \right )}}{2 \Gamma \left (1 - p\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (b\,x^2+a\right )}^p\,{\left (d+e\,x\right )}^2}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________